package com.yuyou.train.lesson.service;

import java.util.List;

import com.yuyou.train.lesson.vo.req.ReqResQuesAdd;
import com.yuyou.train.lesson.vo.req.ReqResQuesUpdate;
import com.yuyou.train.service.api.lesson.dto.QuestionPageDTO;
import com.yuyou.train.service.api.lesson.entity.ResourceQuestion;
import com.yuyou.train.util.bean.Pagination;
import com.yuyou.train.util.bean.ResBoolSimpleInfo;

public interface IResourceQuestionService {
    int deleteByPrimaryKey(String id);

    int insert(ResourceQuestion record);

    ResourceQuestion selectByPrimaryKey(String id);

    ResourceQuestion updateByPrimaryKeySelective(ResourceQuestion record);
    
    ResBoolSimpleInfo<String> addQuestion(ReqResQuesAdd reqResQuesAdd, String userId);
    
    ResBoolSimpleInfo<ResourceQuestion> updateQuestion(ReqResQuesUpdate reqResQuesUpdate, String userId);
       
    ResBoolSimpleInfo<String> delQuestion(String id);
    
    List<QuestionPageDTO> findQuestionPageList(Pagination<QuestionPageDTO> p);
    
    int findQuestionPageCount(Pagination<QuestionPageDTO> p);
    
    String generateNum();

    int batchUpdateStatus(List<String> ids, String isUse);

    ResBoolSimpleInfo<String> hasLessonRel(String id);

}